DKAVM COMMAND REFERENCE
DKAVM commands uses
direct access to internal object data and not depends how this data stored in
mesh, i.e. mesh primitive type can be Triangle Strip, Triangle Fan, Triangle
List with shared vertices or Vertices List.
DK GET LIMB VERTEX COUNT
This command will return the number of vertices in the specified limb.
SYNTAX:
Return Integer = DK GET LIMB VERTEX COUNT( Object Number, Limb Number )
DK CONVERT LIMB MESH TO VERTS LIST
This command will convert limb mesh data from shared vertices into vertices list.
SYNTAX:
DK CONVERT LIMB MESH TO VERTS LIST Object Number, Limb Number
DK LIMB MATRIX4
This command will copy the internal matrix of the limb into the specified matrix.
SYNTAX:
DK LIMB MATRIX4 Matrix4Result, Object Number, Limb Number
DK GET LIMB PRIMITIVE TYPE
This command will return the limb primitive type.
|
Result |
Information |
|
1 |
Point list – particles |
|
2 |
Line list |
|
3 |
Line strip |
|
4 |
Triangle list |
|
5 |
Triangle strip |
|
6 |
Triangle fan |
SYNTAX:
Return Integer = DK GET LIMB PRIMITIVE TYPE( Object Number, Limb Number )
DK LIMB SHARED VERTS
This command returns a one if vertices in a limb mesh are shared, otherwise zero.
SYNTAX:
Return Integer = DK LIMB SHARED VERTS( Object Number, Limb Number )
DK GET VERTEX POSITION X
This command will return the X position of specified vertex in the limb. Note that the resulting coordinate is interpreted as local to the limbs' origin, not the world origin. The world coordinate can be obtained by transforming vertex position on limbs' matrix which can be retrieved using the command DK LIMB MATRIX4.
SYNTAX:
Return Float = DK GET VERTEX POSITION X( Object Number, Limb Number, Vertex Number )
DK GET VERTEX POSITION Y
This command will return the Y position of specified vertex in the limb. Note that the resulting coordinate is interpreted as local to the limbs' origin, not the world origin. The world coordinate can be obtained by transforming vertex position on limbs' matrix which can be retrieved using the command DK LIMB MATRIX4.
SYNTAX:
Return Float = DK GET VERTEX POSITION Y( Object Number, Limb Number, Vertex Number )
DK GET VERTEX POSITION Z
This command will return the Z position of specified vertex in the limb. Note that the resulting coordinate is interpreted as local to the limbs' origin, not the world origin. The world coordinate can be obtained by transforming vertex position on limbs' matrix which can be retrieved using the command DK LIMB MATRIX4.
SYNTAX:
Return Float = DK GET VERTEX POSITION Z( Object Number, Limb Number, Vertex Number )
DK SET VECTOR3 TO VERTEX POSITION
This command will set the vector3 data using the X, Y and Z coordinates from the position of specified vertex in the limb. Note that the resulting coordinate is interpreted as local to the limbs' origin, not the world origin. The world coordinates can be obtained by transforming vertex position on limbs' matrix which can be retrieved using the command DK LIMB MATRIX4.
SYNTAX:
DK SET VECTOR3 TO VERTEX POSITION Vector3Result, Object Number, Limb Number, Vertex Number
DK SET VERTEX POSITION
This command will set the position coordinates of specified vertex in the limb. This coordinates should be in local space coordinates (or limb space). The local coordinates can be obtained by transforming vertex position on inverted limbs' matrix which can be retrieved using the command DK LIMB MATRIX4.
SYNTAX:
DK SET VERTEX POSITION Object Number, Limb Number, Vertex Number, X, Y, Z
DK SET VERTEX POSITION Object Number, Limb Number, Vertex Number, Vector3Source
DK GET VERTEX NORMALS X
This command will return the X normals of specified vertex in the limb.
SYNTAX:
Return Float = DK GET VERTEX NORMALS X( Object Number, Limb Number, Vertex Number )
DK GET VERTEX NORMALS Y
This command will return the Y normals of specified vertex in the limb.
SYNTAX:
Return Float = DK GET VERTEX NORMALS Y( Object Number, Limb Number, Vertex Number )
DK GET VERTEX NORMALS Z
This command will return the Z normals of specified vertex in the limb.
SYNTAX:
Return Float = DK GET VERTEX NORMALS Z( Object Number, Limb Number, Vertex Number )
DK SET VECTOR3 TO VERTEX NORMALS
This command will set the vector3 data using the X, Y and Z coordinates from the position of specified vertex in the limb.
SYNTAX:
DK SET VECTOR3 TO VERTEX NORMALS Vector3Result, Object Number, Limb Number, Vertex Number
DK GET VERTEX DIFFUSE
This command will return the diffuse value of specified vertex in the limb.
SYNTAX:
Return Float = DK GET VERTEX DIFFUSE( Object Number, Limb Number, Vertex Number )
DK GET VERTEX U
This command will return the U texture coordinate of specified vertex in the limb.
SYNTAX:
Return Float = DK GET VERTEX U( Object Number, Limb Number, Vertex Number, TextureStage )
DK GET VERTEX V
This command will return the V texture coordinate of specified vertex in the limb.
SYNTAX:
Return Float = DK GET VERTEX V( Object Number, Limb Number, Vertex Number, TextureStage )
DK SET VECTOR2 TO VERTEX UV
This command will set the vector2 data using the U and V texture coordinates of specified vertex in the limb.
SYNTAX:
DK SET VECTOR2 TO VERTEX UV Vector2Result, Object Number, Limb Number, Vertex Number, TextureStage
DK SET VERTEX NORMALS
This command will set the normals data of specified vertex in the limb.
SYNTAX:
DK SET VERTEX NORMALS Object Number, Limb Number, Vertex Number, X, Y, Z
DK SET VERTEX NORMALS Object Number, Limb Number, Vertex Number, Vector3Source
DK SET VERTEX DIFFUSE
This command will set the diffuse value of specified vertex in the limb
SYNTAX:
DK SET VERTEX DIFFUSE Object Number, Limb Number, Vertex Number, Diffuse Value
DK SET VERTEX UV
This command will set the UV texture coordinates of specified vertex in the limb.
SYNTAX:
DK SET VERTEX UV Object Number, Limb Number, Vertex Number, U Value, V Value
DK SET VERTEX UV Object Number, Limb Number, Vertex Number, Vector2Source
DK CALCULATE LIMB BOUNDS
This command will calculate wireframe bounds that reveal the collision sphere and collision boundbox
associated with the limb.
SYNTAX:
DK CALCULATE LIMB BOUNDS Object Number, Limb Number
DK GET LIMB COUNT
This command will return the number of limbs in the object.
SYNTAX:
Return Integer = DK GET LIMB COUNT( Object Number )
DK GET OBJECT FVF
This command will return the FVF Format of the specified object.
SYNTAX:
Return Integer = DK GET OBJECT FVF( Object Number )
DK GET OBJECT WIREFRAME
This command will return the wireframe state of the specified object.
SYNTAX:
Return Integer = DK GET OBJECT WIREFRAME( Object Number )
DK GET OBJECT CULL
This command will return the cull state of the specified object.
SYNTAX:
Return Integer = DK GET OBJECT CULL( Object Number )
DK GET OBJECT LIGHT
This command will return the light state of the specified object.
SYNTAX:
Return Integer = DK GET OBJECT LIGHT( Object Number )
DK GET OBJECT AMBIENT
This command will return the ambient state of the specified object.
SYNTAX:
Return Integer = DK GET OBJECT AMBIENT( Object Number )
DK GET OBJECT FOG
This command will return the fog state of the specified object.
SYNTAX:
Return Integer = DK GET OBJECT FOG( Object Number )
DK GET OBJECT TRANSPARENCY
This command will return the transparency state of the specified object.
SYNTAX:
Return Integer = DK GET OBJECT TRANSPARENCY( Object Number )
DK GET OBJECT GHOST
This command will set the ghost state of the specified object.
SYNTAX:
Return Integer = DK GET OBJECT GHOST( Object Number )
DK GET LIMB WIREFRAME
This command will return the wireframe state of the specified limb.
SYNTAX:
Return Integer = DK GET OBJECT WIREFRAME( Object Number, Limb Number )
DK GET LIMB CULL
This command will return the cull state of the specified limb.
SYNTAX:
Return Integer = DK GET OBJECT CULL( Object Number, Limb Number )
DK GET LIMB LIGHT
This command will return the light state of the specified limb.
SYNTAX:
Return Integer = DK GET OBJECT LIGHT( Object Number, Limb Number )
DK GET LIMB AMBIENT
This command will return the ambient state of the specified limb.
SYNTAX:
Return Integer = DK GET OBJECT AMBIENT( Object Number, Limb Number )
DK GET LIMB FOG
This command will return the fog state of the specified limb.
SYNTAX:
Return Integer = DK GET OBJECT FOG( Object Number, Limb Number )
DK GET LIMB TRANSPARENCY
This command will return the transparency state of the specified limb.
SYNTAX:
Return Integer = DK GET OBJECT TRANSPARENCY( Object Number, Limb Number )
DK GET LIMB GHOST
This command will return the ghost state of the specified limb.
SYNTAX:
Return Integer = DK GET OBJECT GHOST( Object Number, Limb Number )
DK GET LIMB FVF
This command will return the FVF Format of the specified limb.
SYNTAX:
Return Integer = DK GET LIMB FVF( Object Number, Limb Number )